package com.scalar.forecast.forecastEntry.actionCommands;

import com.scalar.forecast.actionCommands.ActionCommand;
import com.scalar.forecast.commons.Constants;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * User: Sujan Kumar
 * Date: Feb 18, 2005
 * Time: 4:11:03 PM
 */
public class ForecastEntryBuildSaveCommand extends ActionCommand
{
    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    {
        ActionForward actionForward = mapping.findForward ( "buildSearchPage" );
        actionForward = new ForecastEntrySalesSaveCommand().execute( mapping, form, request, response );
        request.setAttribute ( Constants.FORECAST_IS_BUILD, "true" );
        return actionForward;
    }

}
